/**
 * Created by NickNi on 2022/5/26.
 */
import React from 'react';

type DashBoardLogProps = {
    companyList: any;
};
const DashBoardDunsTable = (props: DashBoardLogProps) => {
    const list = props.companyList;
    let listHtml = () => {
        let obj = [];
        for (let i = 0; i < list.length; i++) {
            obj.push(
                <li key={i}>
                    <div className="logText">{list[i].name}</div>
                    <div className="logText">{list[i].duns}</div>{' '}
                    <div className="logText">{list[i].employeNum}</div>
                </li>
            );
        }
        return obj;
    };
    return (
        <div className="dashBoardLog">
            <ul>{listHtml()}</ul>
        </div>
    );
};
export default DashBoardDunsTable;
